Upgrade the Development Workbench from 4.0 PTF5 to PTF6
To properly update the Development Workbench in Composer 4.0 PTF5 to PTF6, you must do the following procedures:
Update the users table with a new column
1.	Start DB2. From the Tools menu, open the Control Center and then open the Command Center.
2.	For each user workspace, do the following:
a.	Select the Interactive tabbed pane. Connect to the user workspace by entering the following into the connection text area: 
connect to <workspace_name> user <workspace_owner> using <workspace_owner_password>
where you replace <workspace_name>, <workspace_owner>, and <workspace_owner_password> with the appropriate values for your workspace.
b.	Select the Script tabbed pane. Select Script and then select Import. 
c.	Browse to the addUserDataColumnToUsersTable.sql file in the install_directory\dwinstall\UpdateFROMPTF5toPTF6 directory and select it.
d.	Click Execute. This creates a new users table field.
3.	For each shared repository, do the following:
a.	Select the Interactive tabbed pane. Connect to the user workspace by entering the following into the connection text area: 
connect to <repository_name> user <repository_owner> using <repository_owner_password>
where you replace <repository_name>, <repository_owner>, and <repository_owner_password> with the appropriate values for your workspace.
b.	Select the Script tabbed pane. Select Script and then select Import. 
c.	Browse to the addUserDataColumnToUsersTable.sql file in the install_directory\dwinstall\UpdateFROMPTF5toPTF6 directory and select it.
d.	Click Execute. 
4.	Exit from DB2
Solve a repository problem of previous version
1.	Execute the RepositoryUpdate.cmd contained in the install_directory\dwinstall\UpdateFROMPTF5toPTF6 directory.
2.	Connect to the shared repository. Wait until the process is finished
3.	For each workspace, do the following steps:
a.	Open the Development Workbench and version all the definitions (entities, instances, and groups) in the workspace. Exit from the Development Workbench.
b.	Start DB2. Drop the tables of the workspace from the DB2 Control Center. To do this, select all of the tables, right click one, and click Drop from the pop-up menu.Exit DB2
c.	Execute the user_management.cmd file contained in the install_directory\dwinstall\ directory. 
d.	Select the workspace user and click Edit. Click Create workspace option to recreate the workspace.
e.	Import the definitions you need to each workspace from the repository.
Update the default contents (predefined groups, entities, and instances) of the Development Workbench
Note: you only need to do this procedure if you want the latest definitions
1.	Open the User_Management from the install_directory\dwinstall and create a temporary user workspace. 
2.	Open the Development Workbench connecting to the last temporary created workspace.  In the Repository Explorer, click Add to Workspace from the Workbench menu. Add the entire model contained in the version 4.0e shared repository. 
3.	Exit the Development Workbench.
4.	Start DB2. From the Tools menu, open the Control Center and then open the Command Center.
5.	Select the Interactive tabbed pane. Connect to the temporary user workspace by entering the following into the connection text area: 
connect to <workspace_name> user <workspace_owner> using <workspace_owner_password>
where you replace <workspace_name>, <workspace_owner>, and <workspace_owner_password> with the appropriate values for your workspace.
6.	Select the Script tabbed pane. Select Script and then select Import. 
7.	Browse to the dw_repDefsUpdateFromPTF5.sql file in the <install_directory>\dwinstall\UpdateFROMPTF5toPTF6 directory and select it.
8.	Click Execute. This updates the temporary workspace with the new default contents.
9.	Exit the DB2.
10.	Start the Development Workbench and connect to the new user workspace. Open new editions of all the entities, groups, and instances. 
Tip: create open editions for all the entities first to complete this step quicker.
11.	Version the new editions to the shared repository. The recommended name is 4.0f.
12.	Go to DB2 and delete the temporary workspace. 
13.	For each user workspace, add the contents of the shared repository. This upgrades the user's data from PTF5 to the default values of PTF6.
14.	Review any validation errors that the upgrade may have caused. These validation errors are caused by changes in the data definitions.

